//
//  4-10.cpp
//  mm
//
//  Created by  AbbyCin on 12/16/14.
//  Copyright (c) 2014  AbbyCin. All rights reserved.
//

#include <iostream>
#include <array>

using namespace std;

int main()
{
    array<float, 3> a;
    
    cout << "enter 3 times 40m run record:" << endl;
    cout << "1st: "; cin >> a[1];
    cout << "\n2nd: "; cin >> a[2];
    cout << "\n3rd: "; cin >> a[3];
    
    cout << "\n" << a.size() << "times' avarage mark is: " << (a[1] + a[2] + a[3]) / a.size() << endl;
    
    return 0;
}